package com.example.dayu521.sg_oss.service;

import java.util.Map;

public interface OrderNumSource {
    Long get_random_node();
    void save_to(Long node_index,Map<String,? extends Object> multi_keys);

    <T> void save_to(Long node_index,String key,T obj,long version);

    <T> boolean save_not_exist(Long node_index,String key,T obj);

    boolean save_not_exist(Long node_index, Map<String,? extends Object> multi_keys);


    <T> T pull_from(Long node_index,String key);
    Long get_next_long(Long node_index,String key);
}
